export default safe => {
  console.log(safe) // vue的this对象
  return {
    index: true,
    selection: true,
    align: 'center',
    headerAlign: 'center',
    border: true,
    stripe: true,
    searchMenuSpan: 8,
    column: [
      {
        label: '用户名',
        prop: 'userName',
        search: true,
        rules: [
          {
            required: true,
            message: '请输入用户名',
            trigger: 'blur'
          }
        ]
      },
      {
        label: '密码',
        prop: 'password',
        showColumn: false,
        rules: [
          {
            required: true,
            message: '请输入密码',
            trigger: 'blur'
          }
        ]
      },
      {
        label: '昵称',
        prop: 'nickName',
        search: true,
        rules: [
          {
            required: true,
            message: '请输入昵称',
            trigger: 'blur'
          }
        ]
      },
      {
        label: '角色',
        prop: 'roleNames',
        search: false,
        type: 'select',

        slot: true,
        rules: [
          {
            required: true,
            message: '请输入角色',
            trigger: 'blur'
          }
        ],
        multiple: true,
        dicData: safe.roledic,
        props: {
          label: 'name',
          value: 'id'
        }
      },
      {
        label: '创建时间',
        prop: 'createdTime',
        addDisplay: false,
        editDetail: false
      },
      {
        label: '状态',
        prop: 'status',
        slot: true,
        addDisplay: false,
        editDetail: false

      }
    ]
  }
}
